package org.jeecg.modules.kuner.userpointstatement.mapper;

import java.math.BigDecimal;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.kuner.userpointstatement.entity.SdUserPointStatement;

/**
 * @Description: 会员积分记录
 * @Author: jeecg-boot
 * @Date:   2024-10-28
 * @Version: V1.0
 */
public interface SdUserPointStatementMapper extends BaseMapper<SdUserPointStatement> {

    /**
     * 查询某会员今天的积分汇总数据
     * @param userId 会员ID
     * @return 积分汇总金额
     */
    BigDecimal selectTodayPointCountByUserId(String userId);

    /**
     * 查询会员可提现的积分汇总数值
     * @param userId 会员ID
     * @return 积分汇总数值
     */
    BigDecimal selectTakeablePointCountByUserId(String userId);
}
